/**
 *  ward @ 2019
 *  harrydeep@wardyan.top
 */
package top.wardyan.po;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;

import top.wardyan.base.config.Const;

/**
 * 
 * @author ward 2019年2月27日
 */
public class WTableColumn<T extends Table> extends TableColumn{

	/**
	 * @param parent
	 * @param style
	 */
	public WTableColumn(T parent) {
		this(parent, 100, "", SWT.CENTER);
	}
	
	
	
	public WTableColumn(T parent, Integer width, String title, Integer align) {
		super(parent != null ? parent : new Table(Const.display.getActiveShell(), SWT.NONE), SWT.NONE);
		this.setWidth(width);
		this.setText(title);
		this.setAlignment(align);
	}
	
	@Override
	protected void checkSubclass() {
	}
	
	

}
